/**
 * Created with IntelliJ IDEA.
 * Description:
 * user:likai
 * Date:2022-10-11
 * Time:17:12
 */
public class Test {

    public static void main(String[] args) {
        SeqList seqList=new SeqList();
        seqList.add(1);
        seqList.add(2);
        seqList.add(3);
        seqList.add(4);
        seqList.add(5);
        seqList.display();
        seqList.add(3,3);
        seqList.display();
        System.out.println(seqList.contains(2));
        System.out.println(seqList.contains(9));
        System.out.println(seqList.get(2));
        try{
            seqList.add(3,3);
        }catch (EmptyException e){
            e.printStackTrace();
        }
        seqList.display();
        System.out.println(seqList.indexOf(3));
        seqList.remove(3);
        seqList.display();
    }
}
